package com.vcredit.creditcat.persistence.base;

import com.vcredit.creditcat.model.CustCard;
import com.vcredit.framework.pagination.DefaultCriteria;

import java.util.List;

import org.apache.ibatis.annotations.Param;

public interface CustCardMapper {
	void insert(CustCard obj);

	void update(CustCard obj);

	List<CustCard> findAll();

	List<CustCard> find(CustCard obj);

	CustCard findById(Long id);

	List<CustCard> findByPage(DefaultCriteria criteria);

	List<CustCard> findByCustAndTypeOrderUpdate(@Param("custId")Long custId, @Param("type")int type);
}
